package net.lzzy.lxq.dao;

import net.lzzy.lxq.entities.Recommendation;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RecommendationMapper {
    @Results({
            @Result(property = "cardTitle",column = "card_title"),
            @Result(property = "cardContent",column = "card_content"),
            @Result(property = "cardImg",column = "card_img"),
            @Result(property = "cardHref",column = "card_href")
    })
    @Select("select * from recommendation")
    List<Recommendation> getRecommendations();
}
